const mongoose = require('mongoose')
mongoose.connect('mongodb://127.0.0.1:27017/sunzhihao').then(() => {
    console.log('连接成功');
}).catch(() => {
    console.log('连接失败');
    
})

const field =   mongoose.Schema({
	name: String,
	region: String,
	date1: String,
	date2: String,
	type: [],
	resource: String,
})
const eq = mongoose.model('eq', field)
module.exports = eq